package com.jy.adscm.wechat.bean;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author zyl
 * @since 2019-10-10
 */
public class WechatUpkeep implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 浆站id
     */
    private Integer pid;
    @TableField(exist = false)
    private ShCustomerInfo shCustomerInfo;
    /**
     * 机器号
     */
    private Integer machine;
    @TableField(exist = false)
    private ShMachine machineName;
    /**
     * 保养单号
     */
    private String orderNums;
    /**
     * 保养人
     */
    private String repairer;
    @TableField(exist = false)
    private String repairerName;
    /**
     * 开始维修
     */
    private Date startTime;
    /**
     * 结束维修
     */
    private Date endTime;
    /**
     * 保养结果
     */
    private Integer result;
    /**
     * 保养结果说明
     */
    private String remark;
    /**
     * 状态
     */
    private Integer state;
    private String picture1;
    private String picture2;
    private String picture3;
    private Date createTime;

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public ShCustomerInfo getShCustomerInfo() {
        return shCustomerInfo;
    }

    public void setShCustomerInfo(ShCustomerInfo shCustomerInfo) {
        this.shCustomerInfo = shCustomerInfo;
    }

    public ShMachine getMachineName() {
        return machineName;
    }

    public void setMachineName(ShMachine machineName) {
        this.machineName = machineName;
    }

    public String getRepairerName() {
        return repairerName;
    }

    public void setRepairerName(String repairerName) {
        this.repairerName = repairerName;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public Integer getMachine() {
        return machine;
    }

    public void setMachine(Integer machine) {
        this.machine = machine;
    }

    public String getOrderNums() {
        return orderNums;
    }

    public void setOrderNums(String orderNums) {
        this.orderNums = orderNums;
    }

    public String getRepairer() {
        return repairer;
    }

    public void setRepairer(String repairer) {
        this.repairer = repairer;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getStartTime() {
        return startTime;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getEndTime() {
        return endTime;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Integer getResult() {
        return result;
    }

    public void setResult(Integer result) {
        this.result = result;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getPicture1() {
        return picture1;
    }

    public void setPicture1(String picture1) {
        this.picture1 = picture1;
    }

    public String getPicture2() {
        return picture2;
    }

    public void setPicture2(String picture2) {
        this.picture2 = picture2;
    }

    public String getPicture3() {
        return picture3;
    }

    public void setPicture3(String picture3) {
        this.picture3 = picture3;
    }

    @Override
    public String toString() {
        return "WechatUpkeep{" +
        "id=" + id +
        ", pid=" + pid +
        ", machine=" + machine +
        ", orderNums=" + orderNums +
        ", repairer=" + repairer +
        ", startTime=" + startTime +
        ", endTime=" + endTime +
        ", result=" + result +
        ", remark=" + remark +
        ", state=" + state +
        ", picture1=" + picture1 +
        ", picture2=" + picture2 +
        ", picture3=" + picture3 +
        "}";
    }
}
